package com.qfedu.openplateform.order.controller;

import com.qfedu.openplateform.common.entity.PopOrderData;
import com.qfedu.openplateform.order.service.PopOrderDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private PopOrderDataService popOrderDataService;

    @RequestMapping("/add")
    public void add(PopOrderData popOrderData) throws Exception {
        popOrderDataService.addOrderData(popOrderData);
    }
}
